<?
include 'common/autoload.php';
use \pft\Member\MemberAccount;
use \pft\Prod\Ticket;
include 'common/Prod_Common.php';

if(!is_numeric($_GET['t'])) {
    exit('访问参数格式不正确！');
}
if(isset($_GET['bt']) && isset($_GET['et'])) {
    if( ! checkData($_GET['bt']) ) {
        exit('起始日期格式不正确！');
    }
    if( ! checkData($_GET['et']) ) {
        exit('截止日期格式不正确！');
    }
}
$t = abs($_GET['t']);
$bt = isset($_GET['bt'])?  trim($_GET['bt']): date('Y-m-d', $_GET['d']);
$et = isset($_GET['et']) ? trim($_GET['et']): $bt;
$memid = $_SESSION['memberID'];
$dtype = $_SESSION['dtype'];
$ticket = new Ticket($GLOBALS['le']);
$prod_list = $ticket->ProductChanged($dtype, $memid, $t, $bt, $et);
$page_title = '产品变更列表 - ';
include "common/header.html";
include 'common/left.html';
include TPLPATH.'prod_log.tpl';
include "common/footer.html";
